package com.cyzy.service;

import com.cyzy.domain.MessageBean;
import com.cyzy.domain.TUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cyzy.dto.ResponseData;

/**
 * @author 10204
 * @description 针对表【t_user(用户表，用于存储用户信息)】的数据库操作Service
 * @createDate 2024-11-12 14:32:29
 */
public interface TUserService {

    ResponseData login(String phone, String password);

    ResponseData UUIDLogin(String phone, String password, String uuid, String code);

    ResponseData register(TUser tUser);

    ResponseData updatePassword(String phone, String password, String code);

    ResponseData emailLogin(String email, String emailCode);

    //  查询用户信息
    ResponseData getUser(TUser tUser);

    // 用户修改密码
    ResponseData setpassword(Integer userId, String oldpassword, String newpassword);

    // 修改用户信息
    int setUser(TUser tUser);
    ResponseData updateEditlnfoUser(String phone ,String code ,String oldPassword ,String newPassword);
    //
    ResponseData svaeMessage(MessageBean messageBean);

}
